#include<stdio.h>
#include<conio.h>
void display(int *, int);
void main()
{
	int num[] = {24, 34, 12, 44, 56, 17};

	clrscr();

	display( &num[6], 0);
}

void display(int *j, int n)
{
	int i;

	for(i = 0; i <= n - 1; i++)
	{
		printf("\n\n\t\tElement = %d", *j);

		j++; //increment pointer to point to next to next element
	}

	getch();
}